package org.darkforest.common.services.impl;

import org.darkforest.dao.mapper.EvaluateGoodsMapper;
import org.darkforest.common.services.EvaluateService;
import org.darkforest.model.EvaluateGoods;
import org.darkforest.model.EvaluateGoodsSearchBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by liu on 15/1/18.
 */
@Service("evaluateService")
public class EvaluateServiceImpl implements EvaluateService {
@Autowired
    EvaluateGoodsMapper evaluateGoodsMapper;

    @Override
    public void evaluateList(EvaluateGoodsSearchBean page) {
        page.setResultList(evaluateGoodsMapper.selectByCondation( page));
    }

    public int updateEvaluate(EvaluateGoods evaluate){
       return  evaluateGoodsMapper.updateByPrimaryKeySelective(evaluate);
    }
}
